package my.jbf.firstGame.GAMEDATA;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import my.jbf.firstGame.R;

public class GameDBManager
{
    private static GameDBManager instance = null;
    private final GameDBHelper mGameDBHelp;
    private final SQLiteDatabase mSQLiteDB;
    private final Context mContext;


    public static GameDBManager getInstance(Context context) {
        if (instance == null) {
            instance = new GameDBManager(context);


        }

        return instance;
    }

    private GameDBManager(Context context) {
        mContext=context;
        mGameDBHelp = new GameDBHelper(context,context.getExternalCacheDir().getPath()+mContext.getString(R.string.OutSideUserDBAdress));
        mSQLiteDB = mGameDBHelp.getWritableDatabase();


    }

}
